package com.snimay.util;

import java.util.Base64;
import java.util.Base64.Decoder;
import java.util.Base64.Encoder;

public class Base64Utils {
	static Decoder decoder = Base64.getDecoder();
	static Encoder encoder = Base64.getEncoder();
	public static byte[] decode(String privatekey) {
		String s = new String();
		s.concat("xx");
		return decoder.decode(privatekey);
	}
	public static String encode(byte[] privatekey) {
		return encoder.encodeToString(privatekey);
	}
}
